package com.cimu.redis.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Title: ClusterConfigProperties
 * Copyright: Copyright (c) 2017
 *
 *
 * date 2018年12月01日 22:46
 */
@Component
@ConfigurationProperties(prefix = "redis.cluster")
public class ClusterConfigProperties {

    private List<String> nodes;

    private Integer maxRedirects;

    public List<String> getNodes() {
        return nodes;
    }

    public void setNodes(List<String> nodes) {
        this.nodes = nodes;
    }

    public Integer getMaxRedirects() {
        return maxRedirects;
    }

    public void setMaxRedirects(Integer maxRedirects) {
        this.maxRedirects = maxRedirects;
    }
}
